import Vue from 'vue'
import App from './App.vue'
// 引入路由
import router from "./router/router";
import axios from 'axios';

import {Button, Image as VanImage,Icon} from "vant";


//全局配置 默认访问的后端服务器url
axios.defaults.baseURL = 'http://118.178.180.86:9000/';
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';




Vue.config.productionTip = false
Vue.prototype.$http = axios;  // 将axios改写为Vue的原型属性

Vue.use(Icon);
Vue.use(Button);
Vue.use(VanImage);





new Vue({
    router,
    render: h => h(App),
}).$mount('#app')
